<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>批量上传薪资信息</title>
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.0.2/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container mt-5">
    <h2>批量上传薪资信息</h2>
    {% if error %}
    <div class="alert alert-danger">{{ error }}</div>
    {% endif %}
    <form method="POST" enctype="multipart/form-data"
          action="{{ url_for('salary.upload_excel') }}">
        <div class="mb-3">
            <label class="form-label">Excel 文件</label>
            <input type="file" name="file" class="form-control" accept=".xlsx,.xls">
        </div>
        <div class="mb-3">
            <label class="form-label">管理员密码</label>
            <input type="password" name="admin_password" class="form-control">
        </div>
        <button type="submit" class="btn btn-primary">上传并解析</button>
    </form>
    <hr>
    <p>注意：表头必须为 “公司”、“职位”、“城市”、“月薪(k)”、“月数”、“年终奖(k)”、“签字费(k)”、“股票期权”、“类型”、“学历要求”、“行业”、“备注”</p>
</div>
</body>
</html>